package com.hongdee.crm.statistics.task.dao;

import com.hongdee.base.basedao.IBaseDao;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2017/5/24.
 */
public interface ITCrmCarCountTaskDao extends IBaseDao {

    /**
     * 查询公司所属的公司有哪些
     * @return
     */
    public List<Map<String,Object>> queryCompanyByWorkOrder(String tabName) throws Exception;

    /**
     * 获得该公司在指定年份数据信息
     * @return
     * @throws Exception
     */
    public Map<String,Object> queryAccidentCarInfo(String companyId,String year,String label)throws Exception;

    /**
     * 质保回厂率 判断是否存在
     * @param companyId
     * @param uid
     * @param year
     * @param label
     * @return
     * @throws Exception
     */
    public Map<String, Object> queryAccidentCarInfo(String companyId,String uid, String year, String label,String tabName) throws Exception;

    /**
     * 判断公司是否有数据 如果有则只生成三个月的数据 如果没有 则生成12个月
     * @param companyId
     * @return
     * @throws Exception
     */
    public boolean queryStatisticsDataByCompany(String companyId,String tabName) throws Exception;

}
